package com.xinruke.hostels.reservation.user;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication(scanBasePackages = "com.xinruke.hostels")
@EnableEurekaClient
@EnableHystrix
@EnableFeignClients(basePackages = "com.xinruke.hostels")
@MapperScan(basePackages = {"com.xinruke.hostels.reservation.user.mapper","com.xinruke.hostels.common.mapper"})
public class ReservationUserApplication {
    static Logger logger = LoggerFactory.getLogger(ReservationUserApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(ReservationUserApplication.class, args);

        logger.info("--------------------------");
        logger.info("----ReservationUser Start Success----");
        logger.info("--------------------------");
    }
}
